package cn.proxy.statc;

public class ProxyDemo {
	public static void main(String[] args) {
		UserService userService = new UserServiceImpl();
		userService.sayHello();
		System.out.println(userService.getHelo());
		
		UserServiceProxy proxy = new UserServiceProxy(userService);
		proxy.sayHello();
		System.out.println(proxy.getHelo());
		
	}
}
